/**
*  \file cfg.h
*
*  \brief Global configuration.
*
*  \author Michael J. Hohmann <michael.hohmann@linde-mh.de>
*
*  Global configuration to control program generation. This is the right place to
*  add additional switches to control debug, trace or management of variants.
*
*/

#ifndef CFG_H_INCLUDED
#define CFG_H_INCLUDED

/*================================================[ public defines   ]================================================*/

/** Declare static inline functions
*
*  The define STATIC_INLINE should be used as a wrapper to define inline functions.
*/
#define STATIC_INLINE   static inline

/** Restricted.
*
*  Wrapper for the restricted keyword. The keyword restricted is defined in
*  ANSI 99. For non ANSI99 compiler this define should be empty.
*/
#define RESTRICTED
#define RESTRICT


/** Register.
*
*  Wrapper for the register keyword. The keyword register is part of the ANSI
*  definition but is suspected (by Misra) to cause problems.
*  Anyway it can be handled with use of this wrapper.
*/
#define REGISTER  register

/** Unreferenced
*
*  The UNREFERENCED macro have to be used to indicate that the variable or parameter
*  is unused and is not referenced. The use of this macro can also prevent compiler
*  warnings.
*/
#define UNREFERENCED(arg)   ((void)arg)

#define  TS0   0.000250F        /* fast      task sample time in sec */
#define  TS1   0.002000F        /* intermed. task sample time in sec */
#define  TS    0.010000F        /* basic     task sample time in sec */
#define  PI    3.14159265358979323846F
#define  ZPI   (PI*2.0F)
#define  HPI   (PI/2.0F)

/*====================================================================================================================*/

#endif
/***********************************************************************************************************************
*                             Copyright 2008-2009 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
